package e_union_find.e_union_find_opt_by_path_compression;


public class MainTest {

    public static void main(String[] args) {



//        UnionFind51 u = new UnionFind51(5);
        UnionFind52 u = new UnionFind52(5);
        u.testPrint();
        u.union(0, 1);
        u.testPrint();
        u.union(1, 2);
        u.testPrint();
        u.union(2, 3);
        u.testPrint();
        u.union(3, 4);
        // u.unionAll(4, 3, 0);
        u.testPrint();

    }
}
